package org.apache.harmony.javax.security.auth;

import java.security.BasicPermission;

public final class AuthPermission extends BasicPermission
{
  private static final String CREATE_LOGIN_CONTEXT = "createLoginContext";
  private static final String CREATE_LOGIN_CONTEXT_ANY = "createLoginContext.*";
  private static final long serialVersionUID = 1839517926L;

  public AuthPermission(String paramString)
  {
    super(init(paramString));
  }

  public AuthPermission(String paramString1, String paramString2)
  {
    super(init(paramString1), paramString2);
  }

  private static String init(String paramString)
  {
    String str;
    if (paramString == null)
      throw new NullPointerException("auth.13");
    if ("createLoginContext".equals(paramString))
      str = "createLoginContext.*";
    while (true)
    {
      return str;
      str = paramString;
    }
  }
}